public class Dog extends Animal{
    public Dog(String name, int age) {
        super(name, age);
    }

    @Override
    public void eat() {
        System.out.println(name + "吃骨头~~~");
        super.eat();
    }

    @Override
    public void sleep() {
        super.sleep();
    }

    //    void bark() {
//        System.out.println(name + this.age + "汪汪汪~~~");
//    }
//
//    public static void main(String[] args) {
//        Dog dog = new Dog();
//        dog.name = "来福";
//        dog.age = 20;
//        System.out.println(dog.name);
//        System.out.println(dog.age);
//        dog.sleep();
//        dog.eat();
//        dog.bark();
//    }
}


